package com.ruoyi.movie.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.basic.domain.Player;

/**
 * 视频资源对象 video_resource
 *
 * @author ruoyi
 * @date 2025-10-28
 */
public class VideoResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资源ID */
    private Integer resourceId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 资源标识 */
    @Excel(name = "资源标识")
    private String resources;

    /** 播放来源标识(如:youku,qq,iqiyi) */
    @Excel(name = "播放来源")
    private String playFrom;

    /** 播放服务器 */
    @Excel(name = "播放服务器")
    private String playServer;

    /** 播放备注 */
    @Excel(name = "播放备注")
    private String playNote;

    /** 资源地址 */
    @Excel(name = "资源地址")
    private String url;

    /** 影视ID */
    @Excel(name = "影视ID")
    private Integer movieId;

    /** 播放器配置对象 (关联查询) */
    private Player player;

    public void setResourceId(Integer resourceId)
    {
        this.resourceId = resourceId;
    }

    public Integer getResourceId()
    {
        return resourceId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setResources(String resources)
    {
        this.resources = resources;
    }

    public String getResources()
    {
        return resources;
    }

    public void setPlayFrom(String playFrom)
    {
        this.playFrom = playFrom;
    }

    public String getPlayFrom()
    {
        return playFrom;
    }

    public void setPlayServer(String playServer)
    {
        this.playServer = playServer;
    }

    public String getPlayServer()
    {
        return playServer;
    }

    public void setPlayNote(String playNote)
    {
        this.playNote = playNote;
    }

    public String getPlayNote()
    {
        return playNote;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }

    public void setMovieId(Integer movieId)
    {
        this.movieId = movieId;
    }

    public Integer getMovieId()
    {
        return movieId;
    }

    public void setPlayer(Player player)
    {
        this.player = player;
    }

    public Player getPlayer()
    {
        return player;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resourceId", getResourceId())
            .append("title", getTitle())
            .append("resources", getResources())
            .append("playFrom", getPlayFrom())
            .append("playServer", getPlayServer())
            .append("playNote", getPlayNote())
            .append("url", getUrl())
            .append("movieId", getMovieId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
